package zhieasy.cn.service.course.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zhieasy.cn.model.course.ScheduleInfo;
import zhieasy.cn.persistence.mapper.course.ScheduleInfoMapper;
import zhieasy.cn.service.course.ScheduleService;

/**
 * @author DaHang
 * @date 2020/8/22 15:42
 */
@Service
public class ScheduleServiceImpl extends ServiceImpl<ScheduleInfoMapper, ScheduleInfo> implements ScheduleService {

    @Autowired
    ScheduleInfoMapper scheduleInfoMapper;
    
    @Override
    public int insertNewSchedule(ScheduleInfo scheduleInfo) {
        int id = scheduleInfoMapper.insertNewSchedule(scheduleInfo);
        return id;
    }
}
